<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include  file="/common/mytags.jsp"%>

<!DOCTYPE HTML>
<html>
  <head>
    <title>登录</title>
	<%@ include file="/common/common_js_css.jsp" %>
	<script type="text/javascript">
	$(function(){
		/*XuntongJSBridge.call('getPersonInfo',{},function(result){
			if(!result.success){
				myModalAlert(result.error);
				return;
			}
			_OPENID = result.data.openId;*/
			myModalLoadingOpen(null);
			$.ajax({
				type:"post",
				url:_BASEPATH+"appLogin.shtml",
				data:"openId="+_OPENID,
				dataType:"JSON",
				success:function(res){
					myModalLoadingClose();
					if(res.success){
						if(location.search.indexOf("news") != -1){
							forward('${basePath}newsApp/index.shtml');
						}else if(location.search.indexOf("visit") != -1){
							forward('${basePath}visitApp/index.shtml');
						}else if(location.search.indexOf("vip") != -1){
							forward('${basePath}vipApp/index.shtml');
						}else if(location.search.indexOf("group") != -1){
							forward('${basePath}teamApp/group/index.shtml');
						}else if(location.search.indexOf("gzs") != -1){
							forward('${basePath}teamApp/gzs/index.shtml');
						}else if(location.search.indexOf("xqxz") != -1){
							forward('${basePath}teamApp/xqxz/index.shtml');
						}else if(location.search.indexOf("honor") != -1){
							forward('${basePath}honorApp/index.shtml');
						}else if(location.search.indexOf("migu") != -1){
							forward('${basePath}miguApp/index.shtml');
						}else{
							forward('${sessionScope.returnUrl}');
						}
					}else{
						myAlert(res.msg);
					}
				}
			});
		//});
	});
	</script>
  </head>
  	
  <body>
  </body>
</html>
